package test.kryonet.network.data.events;

import test.kryonet.network.HasTimeStamp;

import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.utils.Pool;

public class AbstractEvent implements HasTimeStamp {
	protected long timestamp;
	Object object;
	
	public AbstractEvent (){
	}
	
	public AbstractEvent autoTime() {
		this.timestamp = System.nanoTime();
		Object obje= new Object();
		synchronized (obje) {
			System.out.println();
		}
		return this;
	}
	@Override
	public long getTimeStamp() {
		return timestamp;
	}
	
	
	public AbstractEvent setTime(long time) {
		this.timestamp = time;
		return this;
	}
}
